-- GENERATED SPELL FOR [Syth Frost Elemental] --


function spell0_19204(pUnit, Event) --@Frost Buffet,n/a--
pUnit:FullCastSpellOnTarget(33528,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19204', 22200, 1)
end

function spell1_19204(pUnit, Event) --@Frost Buffet,n/a--
pUnit:FullCastSpellOnTarget(38142,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19204', 22200, 1)
end

function Sorts_19204(pUnit, Event)
local choix_sorts_19204 = math.random(0, 1)
if choix_sorts_19204 == 0 then
pUnit:RegisterEvent('spell0_19204', 1, 1)
end
if choix_sorts_19204 == 1 then
pUnit:RegisterEvent('spell1_19204', 1, 1)
end
end

function mob19204_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19204', math.random(1500, 3000), 1)
end

function mob19204_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19204_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19204_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19204, 1, 'mob19204_Action')
RegisterUnitEvent(19204, 2, 'mob19204_Leave')
RegisterUnitEvent(19204, 3, 'mob19204_Kill')
RegisterUnitEvent(19204, 4, 'mob19204_Die')
